class Comment < ActiveRecord::Base
  belongs_to :event
  belongs_to :user
  attr_accessor :url
  
  after_save do |comment|
    comment.event.interested_users.each do |u|
      CommentMailer.deliver_comment_notification(comment, u)
    end
  end
  
end
